package priv.yiyuan.example.design.export;

/**
 * 库存报表
 */
public class InventoryReport extends Report {

    public InventoryReport(ExportFormat exportFormat) {
        super(exportFormat);
        this.title = "库存报表";
    }

    @Override
    public String generate() {

        StringBuilder content = new StringBuilder(title + ":\n");

        for (String item : data) {
            content.append(" * ").append(item).append("\n");
        }

        return content.toString();
    }
}
